﻿@model Parichay.Domain.Models.LogOnModel

@{
    ViewBag.Title = "Log On";
}

<h2>Log On</h2>
<p style="color:Red"><b>If you are the first user, sign-up with "sysadmin" username. Delete this message from Account&gt;&gt;LogOn  once you've created the admin account.</b></p>
<p>
    Please enter your user name and password. @Html.ActionLink("Sign Up", "Register") if you don't have an account.
</p>
@section Styles {
<link href="@Url.Content("~/Content/Styles/jquery.ui.css")" rel="stylesheet" type="text/css" />
}
@section Scripts
{
<script src="@Url.Content("~/Content/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Content/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
}
@Html.ValidationSummary(true, "Login was unsuccessful. Please correct the errors and try again.")

@using (Html.BeginForm()) {
    <div>
        <fieldset>
            <legend>Account Information</legend>
            <table class="tblAllBorders">
            <tr><th>
                @Html.LabelFor(m => m.UserName)
            </th><td>
                @Html.TextBoxFor(m => m.UserName)
                @Html.ValidationMessageFor(m => m.UserName)
            </td></tr>

            <tr><th>
                @Html.LabelFor(m => m.Password)
            </th><td>
                @Html.PasswordFor(m => m.Password)
                @Html.ValidationMessageFor(m => m.Password)
            </td></tr>

            <tr><th >
                @Html.CheckBoxFor(m => m.RememberMe)
                @Html.LabelFor(m => m.RememberMe)
            </th>
            <td style="text-align:center;"><input type="submit" value="Log On" /></td></tr>
            </table>
        </fieldset>
    </div>
}
